package com.zut.questionnaire.pojo;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

//答卷表
@Getter
@Setter
@Entity
public class AnswerSheet implements Serializable {

    @Id
    private String id;  //答卷id

    private String questionnaireId; //问卷id

    private LocalDateTime answerDate; //回答日期

    private String userId; //回答人

    @OneToMany(cascade = CascadeType.ALL)
    @JoinColumn(name = "answerSheetId")
    private List<Answer> answerList; //答案




}